$(document).ready(function() { 
   $('#s3slider').s3Slider({ 
      timeOut: 4000 
   });
});


function putMapsOnLocation(mapsDivId,zoomLevel,lat,lng,descriptionContent){
		var gmap = new google.maps.Map(document.getElementById(mapsDivId),
			{ 	zoom: zoomLevel,
				center: new google.maps.LatLng(lat, lng),
				mapTypeId: google.maps.MapTypeId.ROADMAP,
				mapTypeControl: true,
			    mapTypeControlOptions: { style: google.maps.MapTypeControlStyle.DROPDOWN_MENU },
			    navigationControl: true,
			    navigationControlOptions: { style: google.maps.NavigationControlStyle.SMALL } });

	    google.maps.event.addListenerOnce(gmap, 'tilesloaded', function(event) {
			var infowindow =  new google.maps.InfoWindow({});
		    var markerOptions = (!''.length)?{position: new google.maps.LatLng(lat,lng), map: gmap}:{position: new google.maps.LatLng(lat,lng),icon:new google.maps.MarkerImage(''),map: gmap}; 
		
		    var marker = new google.maps.Marker(markerOptions);
		    var openTooltip = function() {
		        infowindow.setContent(descriptionContent);
		    	infowindow.open(gmap, marker);		    	
		    }
		    google.maps.event.addListener(marker, 'click', openTooltip);
		    if (false) openTooltip();
	  	});
}